#include "Test.h"
#include "Imgui/imgui.h"
namespace Test
{
	TestMenu::TestMenu(Test*& testPointer,bool* bEnterTest):m_currentTest(testPointer),m_bEnterTest(bEnterTest)
	{

	}

	TestMenu::~TestMenu()
	{
	}

	void TestMenu::OnImguiRender()
	{
		for (auto& test : m_TestsContainer)
		{
			if (ImGui::Button(test.first.c_str()))
			{
				m_currentTest=test.second();
				*m_bEnterTest =true;
			}
		}
	}

}
